Category Icon

Executing Shell Scripts with Remote Desktop

Shell scripts can be copied, then executed. If a script has any degree of complexity, or if it cannot be expressed on a single line, you can use Copy Items to copy the script file to the client computers, then execute it using Send UNIX Command. To send a single-line command you can simply use Send UNIX Command.

  1. Prepare and save your script.

    Make sure your script is saved as plain text with UNIX line breaks.

  2. Open Remote Desktop.
  3. Select a computer list in the Remote Desktop window.
  4. Select one or more computers in the selected computer list.
  5. Use the Copy Items command to copy your script to the client computers.

    See Copy Options and Copying from Administrator to Clients for more information.

  6. After copying the script, choose Manage > Send UNIX Command.
  7. Execute the script by typing:
    sh script pathname
  8. Click Send.